package com.yjd.comm.fraudmetrix.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.fraudmetrix.model.FraudHitrulesModel;

/**
 * <b>description</b>：银行卡表业务接口<br>
 * <b>time</b>：2015-05-26 15:18:15 <br>
 * <b>author</b>： wanganping
 */
public interface IFraudHitrulesService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public FraudHitrulesModel insert(FraudHitrulesModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(FraudHitrulesModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param record_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long record_id) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public void batchInsert(List<FraudHitrulesModel> models) throws Exception;

	/**
	 * 获取命中规则列表
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public List<FraudHitrulesModel> getHitRulesList(Map<String, Object> param) throws Exception;

}
